/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TestKelas;
import Pembelian.pembelian;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
 *
 * @author Ignacio
 */
public class PembelianTest {
    static pembelian p1=new pembelian();
    static pembelian p2=new pembelian();
    static pembelian p3=new pembelian();
    static pembelian p4=new pembelian();
    static pembelian p5=new pembelian();
    
    public static void main(String[] args) {
        System.out.println("Test notransaksibeli =' '");
        try {
            p1.setNo_transaksibeli("");
            System.out.println("SUkses "+p1.getNo_transaksibeli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
         System.out.println("Test notransaksibeli ='0000'");
        try {
            p2.setNo_transaksibeli("0000");
            System.out.println("Sukses "+p2.getNo_transaksibeli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksibeli ='wawawa'");
        try {
            p3.setNo_transaksibeli("wawawa");
            System.out.println("Sukses "+p3.getNo_transaksibeli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksibeli ='MAFYB-'");
        try {
            p4.setNo_transaksibeli("MAFYB-");
            System.out.println("Sukses "+p4.getNo_transaksibeli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test notransaksibeli ='MAFYB-0001'");
        try {
            p5.setNo_transaksibeli("MAFYB-0001");
            System.out.println("Sukses "+p5.getNo_transaksibeli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        
        System.out.println("Test jumlah beli =''");
        try {
            p1.setJumlah_beli("");
            System.out.println("Sukses "+p1.getJumlah_beli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test jumlah beli ='asdfa'");
        try {
            p2.setJumlah_beli("asdfa");
            System.out.println("Sukses "+p2.getJumlah_beli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test jumlah beli ='1000a'");
        try {
            p3.setJumlah_beli("1000a");
            System.out.println("Sukses "+p3.getJumlah_beli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test jumlah beli ='10000'");
        try {
            p4.setJumlah_beli("10000");
            System.out.println("Sukses "+p4.getJumlah_beli());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        
        System.out.println("Test setHarga_pembelian =''");
        try {
            p1.setHarga_pembelian("");
            System.out.println("Sukses "+p1.getHarga_pembelian());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga_pembelian ='asdfa'");
        try {
            p2.setHarga_pembelian("asdfa");
            System.out.println("Sukses "+p2.getHarga_pembelian());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga_pembelian ='1000a'");
        try {
            p3.setHarga_pembelian("1000a");
            System.out.println("Sukses "+p3.getHarga_pembelian());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        System.out.println("Test setHarga_pembelian ='10000'");
        try {
            p4.setHarga_pembelian("10000");
            System.out.println("Sukses "+p4.getHarga_pembelian());
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
    }
    
}
